<div id="messages_by_sender_content">
<?php
//echo "<pre>";print_r($retval);echo "</pre>";

foreach($retval as $key=>$senders){
	echo '<div class="msg_line">';
	echo '<div class="msg_sender">'.$senders['username'].'</div>';
	echo '<div class="msg_body">'.$senders['body'].'</div>';
	echo '<div class="msg_cdate">'.$senders['cdate'].'</div>';
	echo '</div>';
}

?>
</div>
<div id="msg_submitter">
	<input type="hidden" value="<?php echo $recipient_id?>" id="recipient_id_for_reply_msg">
	<div id="reply_area">
		<textarea id="reply_msg" cols="83" rows="5"></textarea>	
	</div>
	<div id="reply_submit_area">
		<input type="button" value="回覆" onclick="replyMessage();">	
	</div>
	
</div>